package com.xja.service.impl;/**
 * @className: UserServiceImpl
 * @description: TODO 类描述
 * @author: wkx
 * @date: 2022/4/14
 **/

import com.xja.mapper.UserMapper;
import com.xja.pojo.User;
import com.xja.service.UserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName : UserServiceImpl  //类名

 * @Author : Lenovo //作者
 * @Date: 2022/4/14  9:43
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User login(String username) {
        return userMapper.selectByUsername(username);
    }
}
